//
//  GlobalConstant.swift
//  AnShiPai
//
//  Created by 马瑜 on 2017/7/6.
//  Copyright © 2017年 马瑜. All rights reserved.
//

import UIKit

let ScreenBounds = UIScreen.main.bounds
let SCREENW = UIScreen.main.bounds.size.width
let SCREENH = UIScreen.main.bounds.size.height

let BaseHeight: CGFloat = 667.0
let BaseWidth: CGFloat = 375.0

let ScrollViewBaseHeight = SCREENH > BaseHeight ? SCREENH : BaseHeight
let ScrollViewBaseWidth = SCREENW > BaseWidth ? SCREENW : BaseWidth

let GlobalColor = UIColor(hexString: "3fadf1")

//

#if DEBUG
    let SERVICE_ADDRESS = "http://www.daiguanwang.com/api"
#else
    let SERVICE_ADDRESS = "http://tiger.test.daiguanwang.com/proxy"
#endif

func printLog<T>(_ message: T,
              file: String = #file,
              method: String = #function,
              line: Int = #line)
{
    #if DEBUG
        print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
    #endif
}






